import {POST,GET} from "./request.js"

/**
 课程分类
 */
export const getTrainingCourse = (data)=>{
	return GET('/training/course',data);
}

/**
 课程搜索
 category_id=282
 */
export const getTrainingSearch = (data)=>{
	return GET('/training/search',data);
}

/**
 取课时
 course_id=347&lesson_name=蹲
 */
export const getTrainingLesson = (data)=>{
	return GET('/training/lesson',data);
}

/**
 获取学生列表
 */
export const getStudentIndex = (data)=>{
	return GET('/student/index',data);
}


/**
 查看训练计划下的学生
training_id=1
 */
export const getTrainingStudent = (data)=>{
	return GET('/training/student',data);
}

/**
 查看训练计划详情
training_id=1&student_id=206
 */
export const getTrainingDetail = (data)=>{
	return GET('/training/detail',data);
}

/**
 提交评价
id=1&status=2&recommend=1
 */
export const getTrainingCheck = (data)=>{
	return GET('/training/check',data);
}

// ——————————————————————————————————————————————————————————————————

/**
 取学段school_id
 */
export const getSchoolSection = (data)=>{
	return GET('/school/section',data);
}

/**
 取年级school_id
 */
export const getSchoolGrade = (data)=>{
	return GET('/school/grade',data);
}


/**
 取年级grade_id=1
 */
export const getSchoolClass = (data)=>{
	return GET('/school/class',data);
}


/**
 * 班级ID取学生列表
 student/list?class_id=1&t=1
 */
export const getstudentList = (data)=>{
	return GET('/student/list',data);
}


/**
 发布计划
 */
export const getTrainingSend = (data)=>{
	return GET('/training/send',data);
}


/**
 已发布的训练计划列表
 page=1&per_page=3&class_id=1
 */
export const getTrainingIndex = (data)=>{
	return GET('/training/index',data);
}
